package cn.openea.perpartner.meily.web.service;

import cn.openea.perpartner.meily.web.entity.RevenueRecordsIns;
import cn.openea.perpartner.meily.web.entity.vo.RevenueRecordsSearchVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * @author ysk
 * @email zane_ysk@qq.com
 * @date 2023-03-22 10:51:50
 */
public interface IRevenueRecordsInsService extends IService<RevenueRecordsIns> {


    List<RevenueRecordsIns> listBySearchVo(RevenueRecordsSearchVo searchVo);

    /**
     * 获取上个月的收益记录
     *
     * @return
     */
    List<RevenueRecordsIns> getLastMonthRecordsList();

    /**
     * 根据时间段统计累计收益
     *
     * @param timePeriod 时间 精确到月
     * @return
     */
    BigDecimal countCumulative(LocalDate timePeriod);
}

